/* $Id: NonClientCompanyDAO.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *March 16, 2011 	Raif		 		Created
 *
 */
package ae.pcfc.etks.online.common.dao;

import ae.pcfc.etks.online.common.domain.ClientCompanyReq;
import ae.pcfc.etks.online.common.vo.LicenseVO;

public interface NonClientCompanyDAO {
	
	/**
	 * add
	 * Method to add a ClientCompanyRequest domain object in the database
	 * @param companyReq
	 * @return
	 * String
	 */
	public String add(ClientCompanyReq companyReq);
	
	/**
	 * getNonClientCompanyByApplicationId
	 * Method to get the Client Company Request domain object by application id
	 * @param applicationId
	 * @return
	 * ClientCompanyReq
	 */
	public ClientCompanyReq getNonClientCompanyByApplicationId(String applicationId);
	
	/**
	 * validateLicenseReq
	 * Method to validate whether a license number is already associated with an client
	 * @param licenseVO
	 * @return
	 * boolean returns true if no client is found with the license number
	 * 					else false
	 */
	public boolean validateLicenseReq(LicenseVO licenseVO);
	
	/**
	 * getNonClientCompanyByEmail
	 * Method to find a client company requests domain object by email address
	 * @param email
	 * @return
	 * ClientCompanyReq
	 */
	public ClientCompanyReq getNonClientCompanyByEmail(String email);
	
	/**
	 * getNonClientCompanyByPropertyName
	 * Method to find the client company request based on a property
	 * @param propertyName
	 * @param propertyValue
	 * @return
	 * ClientCompanyReq
	 */
	public ClientCompanyReq getNonClientCompanyByPropertyName(String propertyName, String propertyValue);
	
	/**
	 * validateByPropertyName
	 * Method to validate whether a property value is not used by any active client company request
	 * @param strPropertyName
	 * @param strPropertyValue
	 * @return
	 * boolean
	 */
	public boolean validateByPropertyName(String strPropertyName,
			String strPropertyValue);	
}
